textarea,iframe{width:99%;margin:0;border:none;overflow:auto;font-size:12px}

.wysiwyg{border:1px solid #ccc}

.toolbar{padding:5px;overflow:hidden;border-bottom:1px solid #eee;background:#f7f7f7;zoom:1;}

.toolbar *{display:block;margin:0 1px;padding:1px 2px;border:1px solid #eee;width:16px;height:16px;float:left;background-repeat:no-repeat;background-position:center;cursor:default} * html .toolbar *{width:22px;height:18px}
.toolbar *:hover{background-color:#ffffcc;border-color:#999}

.toolbar .spacer{border:none;width:0px;margin:2px 5px;border-right:2px solid #ccc}
.toolbar .strong{background-image:url(/static/editor/strong.gif)}
.toolbar .em{background-image:url(/static/editor/em.gif)}
.toolbar .u{background-image:url(/static/editor/underline.gif)}
.toolbar .superscript{background-image:url(/static/editor/superscript.gif)}
.toolbar .subscript{background-image:url(/static/editor/subscript.gif)}
.toolbar .left{background-image:url(/static/editor/left.gif)}
.toolbar .center{background-image:url(/static/editor/center.gif)}
.toolbar .right{background-image:url(/static/editor/right.gif)}
.toolbar .indent{background-image:url(/static/editor/indent.gif)}
.toolbar .outdent{background-image:url(/static/editor/outdent.gif)}
.toolbar .h1{background-image:url(/static/editor/h1.gif)}
.toolbar .h2{background-image:url(/static/editor/h2.gif)}
.toolbar .h3{background-image:url(/static/editor/h3.gif)}
.toolbar .ul{background-image:url(/static/editor/ul.gif)}
.toolbar .ol{background-image:url(/static/editor/ol.gif)}
.toolbar .p{background-image:url(/static/editor/p.gif)}
.toolbar .img{background-image:url(/static/editor/img.gif)}
.toolbar .link{background-image:url(/static/editor/link.gif)}
.toolbar .unlink{background-image:url(/static/editor/unlink.gif)}
.toolbar .clean{background-image:url(/static/editor/clean.gif)}
.toolbar .toggle{background-image:url(/static/editor/code.gif)}

.toolbar.disabled *{opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30)}
.toolbar.disabled *:hover{background-color:transparent;border-color:#eee}
.toolbar.disabled .toggle{background-image:url(editor/html.gif);opacity:1;-moz-opacity:1;filter:alpha(opacity=100)}


/* textarea3 */
.rich textarea,.rich iframe,.rich .wysiwyg{height:400px}
.rich .wysiwyg{height:auto}
.rich .pre_imgs{padding:5px;height:58px;overflow:auto;background:#ccc} * html .pre_imgs{height:0}
.rich .pre_imgs img{display:block;height:48px;margin:5px;float:left}
.rich form{border:1px solid #ccc;display:block;padding:8px 16px;text-align:right}
.rich form input{padding:0 5px}

.hidden{display:none !important}